StoreKeeper\WooCommerce\B2C\Frontend\Handlers\ProductAddOnHandler D

Total Complexity 176
Dependencies 11
Dependents 1
Total lines 896
Lines of code 697
Logical lines of code 376
Comment lines 15
Methods 38
Properties 1

Methods 38

Method Rating Maintainability Complexity Lines of code
getAddOnsFromApi()
A
40 11 65
addWcProductsToAddons()
A
46 10 39
addEmballageFee()
A
46 10 38
getAddOnsForProduct()
A
42 8 57
validateCartItemAddQuantity()
A
46 9 40
addSubitemsToCart()
A
47 8 37
renderAddOnFormOnProductPage()
S
51 7 27
renderPriceCalculationJsScriptOnProductPage()
S
49 6 32
calculateRequiredAndOptionalPriceChanges()
S
56 7 17
getAddOnsFromApiWithWcProducts()
S
51 6 27
validateCartItemQuantityUpdate()
S
54 6 21
filterAddonsWithWcProducts()
S
57 6 18
updateCartSubitemsQuantityForCartItem()
S
57 6 17
getSelectedOptionFromPost()
S
57 6 17
setAddOnPriceOnCartSubitem()
S
61 6 13
isProductWithAddOns()
S
53 5 24
setAddOnCartItemData()
S
56 5 18
getProductOtherQuantityFromCart()
S
58 5 16
removeSubitemsForCartItem()
S
59 5 14
hasRequiredAddOns()
S
62 5 11
getProductSalePrice()
S
59 4 15
copyCartItemDataToOrderItem()
S
65 4 9
validateAddonNewCartQuantity()
S
57 3 15
addPostSkAddonCssClass()
S
70 3 6
filterOrderItemAddOnMetaForDisplay()
S
65 3 9
injectSubitemProductNameForMiniCart()
S
67 3 8
appendCssClassToCartItem()
S
66 3 8
registerHooks()
S
52 1 22
getProductRegularPrice()
S
65 2 9
disableRemoveLinkForCartSubitems()
S
67 2 8
isRequiredType()
S
78 2 3
disableQuantityInputForCartSubitems()
S
71 2 6
getAddOnOptionNameFromCartItem()
S
71 2 6
enqueueWcPriceScript()
S
62 1 11
formatOptionTitle()
S
74 1 4
getMultipleChoiceKeyName()
S
77 1 3
getSingleKeyName()
S
78 1 3
renderCssStyles()
S
74 1 4